package com.ruoyi.community.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 房屋对象 house
 * 
 * @author lj
 * @date 2022-02-22
 */
@ApiModel(value = "房屋表")
public class House extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 小区ID */
    @ApiModelProperty(value = "小区ID")
    @Excel(name = "小区ID")
    private Long housingId;

    /** 业主姓名 */
    @Excel(name = "业主姓名")
    @ApiModelProperty(value = "业主姓名")
    private String username;

    /** 业主电话 */
    @Excel(name = "业主电话")
    @ApiModelProperty(value = "业主电话")
    private String phonenumber;

    /** 业主身份证 */
    @Excel(name = "业主身份证")
    @ApiModelProperty(value = "业主身份证")
    private String identityCard;


    /** 面积 */
    @ApiModelProperty(value = "面积")
    @Excel(name = "面积")
    private String area;

    /** 地址 */
    @ApiModelProperty(value = "地址")
    @Excel(name = "地址")
    private String address;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标志")
    private Integer delFlag;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setHousingId(Long housingId)
    {
        this.housingId = housingId;
    }

    public Long getHousingId()
    {
        return housingId;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPhonenumber(String phonenumber)
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber()
    {
        return phonenumber;
    }
    public void setIdentityCard(String identityCard)
    {
        this.identityCard = identityCard;
    }

    public String getIdentityCard()
    {
        return identityCard;
    }
    public void setArea(String area)
    {
        this.area = area;
    }

    public String getArea()
    {
        return area;
    }
    public void setAddress(String address)
    {
        this.address = address;
    }

    public String getAddress()
    {
        return address;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }
    public void setCreatTime(Date creatTime)
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime()
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("housingId", getHousingId())
                .append("username", getUsername())
                .append("phonenumber", getPhonenumber())
                .append("identityCard", getIdentityCard())
                .append("area", getArea())
                .append("address", getAddress())
                .append("delFlag", getDelFlag())
                .append("creatTime", getCreatTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}

